package com.demo.test;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.demo.core.service.InvitationCodeService;

public class testMain {

	public static void main(String[] args) {
		
		ApplicationContext ctx = new ClassPathXmlApplicationContext("spring-context.xml");
/*		UserInfoService userInfoService = ctx.getBean(UserInfoService.class);
		UserInfo userInfo = new UserInfo();
		userInfo.setUserName("admin");
		userInfo.setLoginName("admin");
		userInfo.setAllPinYin("admin");
		userInfo.setFirstPinYin("adm");
		userInfo.setEnable("0");
		userInfo.setRecordCreateTime(DateTimeUtil.getNowDateStr(DateTimeUtil.yyyy_MM_dd_HH_mm_ss));
		userInfo.setTel("15520836819");
		userInfo.setFirstPassword(CommonUtil.generateCheckPass(6));
		
		userInfoService.addUserInfo(userInfo);*/
		InvitationCodeService invitationCodeService = ctx.getBean(InvitationCodeService.class);
		invitationCodeService.automaticGeneration(10, "0");
		
		}
	
	}